<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
    	<meta charset="utf-8">
    	<title>代码生成器</title>
    	<link rel="stylesheet" type="text/css" href="/mobile/plugin/westvalley/common/plugin/iview/iview.css">
	    <script type="text/javascript" src="/mobile/plugin/westvalley/common/plugin/vue/vue.js"></script>
	    <script type="text/javascript" src="/mobile/plugin/westvalley/common/plugin/iview/iview.js"></script>
	    <script type="text/javascript" src="/mobile/plugin/westvalley/common/plugin/jQuery/jquery.min.js"></script>
	    <script type="text/javascript" src="/mobile/plugin/westvalley/common/plugin/jQuery/jquery.cookie.js"></script>
	    <script type="text/javascript" src="/mobile/plugin/westvalley/tools/generator/js/init.js"></script>
	</head>
	<body>
		<div id="app">
			<Row>
				<i-col span="24">
					<i-form :label-width="60">
						<Form-Item label="数据表" prop="tableName">
							<i-input type="text" v-model="tableName" placeholder="数据表"></i-input>
						</Form-Item>
						<Form-Item label="类名" prop="tableName">
							<i-input type="text" v-model="className" placeholder="类名"></i-input>
						</Form-Item>
						<Form-Item label="包路径" prop="packagePath">
							<i-input type="text" v-model="packagePath" placeholder="包路径"></i-input>
						</Form-Item>
						<Form-Item label="模板" prop="mode">
							<Radio-Group v-model="mode" type="button">
		        				<Radio label="javaBean"></Radio>
		        				<Radio label="jfinalModel"></Radio>
		    				</Radio-Group>
						</Form-Item>
					</i-form>
				</i-col>
			</Row>
			<Row>
				<i-col span="24">
					<i-col span="12">
				    	<div style="text-align:center;">
				    		 <i-button type="primary" @click="generatorCode">
				    		 	<Icon type="search"></Icon>
				    		 	<span>生成</span>
				    		 </i-button>
				    	</div>
				    </i-col>
				    <i-col span="12">
				    	<div style="text-align:center;">
					    	<i-button type="ghost" @click="generatorCodeRefresh">
					    		<Icon type="refresh"></Icon>
					    		<span>重置</span>
					    	</i-button>
				    	</div>
				    </i-col>
				</i-col>
			</Row>
			<Row>
				<i-col span="24">
					<div style="height: 10px"></div>
				</i-col>
			</Row>
			<Row>
				<i-col span="24">
					<Card>
						<p slot="title">code</p>
						<i-input v-model="codeText" type="textarea" :autosize="{minRows: 15}" readonly></i-input>
					</Card>
				</i-col>
			</Row>
		</div>
	</body>
</html>